//
//  SEGMerchantProductDisplayModel.h
//  SEGCommunityBussinessDemo
//
//  Created by Clavis on 2019/5/14.
//  Copyright © 2019 Clavis. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kMerchantCellLocation    @"kMerchantCellLocation"
#define kMerchantCellNormalText  @"kMerchantCellNormalText"
#define kMerchantCellDetail      @"kMerchantCellDetail"
#define kMerchantCellPhone       @"kMerchantCellPhone"
#define kMerchantCellTitle       @"kMerchantCellTitle"
#define kMerchantCellProduct     @"kMerchantCellProduct"

typedef enum : NSUInteger {
    SEGMerchantProductDisplayModelTypeTitle,
    SEGMerchantProductDisplayModelTypeNormalText,
    SEGMerchantProductDisplayModelTypeDetail,
    SEGMerchantProductDisplayModelTypeLocation,
    SEGMerchantProductDisplayModelTypePhone,
    SEGMerchantProductDisplayModelTypeProduct
} SEGMerchantProductDisplayModelType;

@interface SEGMerchantProductDisplayModel : NSObject

@property (nonatomic, assign) SEGMerchantProductDisplayModelType type;
@property (nonatomic, copy) NSString *firstText;
@property (nonatomic, copy) NSString *secondText;
@property (nonatomic, copy) NSString *temp;
@property (nonatomic, copy) NSString *image;
@property (nonatomic, assign) BOOL useTintColor;

+ (instancetype)modelWithType:(SEGMerchantProductDisplayModelType)type firstText:(NSString *)firstText secondText:(NSString *)secondText;
+ (instancetype)modelWithType:(SEGMerchantProductDisplayModelType)type firstText:(NSString *)firstText secondText:(NSString *)secondText image:(NSString *)image useTintColor:(BOOL)useTintColor;
- (NSString *)mapIdentifier;

@end


@protocol SEGMerchantCellProtocal <NSObject>

@required
- (void)updateWithModel:(SEGMerchantProductDisplayModel *)model;

@end
